4. Methods and Callbacks
4.03 SetDefault
Syntax:
SetDefault( member whichmember, string specString, string fName,
integer fSize )
Purpose:
This method is used to set the default font names and sizes the
#html cast member uses for display.
specString is a string which specifies which html face you like to
manipulate. The following values are supported:
- "H1", "H2", ..., "H6":
the different sizes of
<Hx> tags
- "NORM1", "NORM2", ..., "NORM7":
the diffierent sizes of normal
text
- "TT1", TT2", ..., "TT7":
the different sizes of teletype or preformatted text
fName is a string that contains the name of the font.
fSize is an integer that specifies the font size.
Note:
- When setting the default fonts, the whole html neither gets
parsed nor does the display get updated. To update the display re-set
the Html of member.
- The settings you make are not saved with the file. You need to set
the font faces and sizes each time the cast member is initialised.
You should call this method from the StartMovie script.
See also: